package net.wanho.shop.mapper;

import net.wanho.shop.po.Member;
import net.wanho.shop.po.Supply;
import org.apache.ibatis.annotations.Mapper;

import java.util.ArrayList;
import java.util.List;

/**
 * 这个类是：
 *
 * @author: MENG HU WANG
 * @date: 2025/1/6 19:54
 * @version: 1.0
 */
@Mapper
public interface SupplyMapper {
    List<Supply> selectAll();

    void addSupply(Supply supply);

    void deleteSupply(Integer id);

    Supply selectById(int supplyId);

    void updateSupply(Supply supply);

    void deleteByIdList(ArrayList<Integer> ids);

    List<Supply> selectBySupplyId(Supply supply);

    void insertBatch(List<Member> list);

    List<Integer> selectGoodsBySupplyId(Integer supplyId);
}
